package cn.iocoder.yudao.module.trade.controller.admin.ordersafetychecktemplateitem.vo;

import cn.iocoder.yudao.module.trade.controller.admin.ordersafetycheckterm.vo.OrderSafetyCheckTermSaveReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 安全检查明细新增/修改 Request VO")
@Data
public class OrderSafetyCheckTemplateItemSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28461")
    private Long id;

    @Schema(description = "安检服务id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27079")
    @NotNull(message = "安检服务id不能为空")
    private Long templateId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "排序不能为空")
    private Integer sort;

    private Integer idIndex;

    private Integer status;

    @Schema(description = "安检项详情")
    private List<OrderSafetyCheckTermSaveReqVO> termSaveReqVOList;
}